package com.org.flow.element.order;

import com.org.flow.system.service.LinkService;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@LiteflowComponent(id = "orderSource", name = "流程_预受理工单下发_启动入口")
@Slf4j
@RequiredArgsConstructor
public class CmpOrderSource extends NodeComponent {

    private final LinkService service;


    @Override
    public void process() {
        log.info("流程_预受理工单下发_启动入口");
        //无论业务执行是否成功都需要提交此事务
        service.transactionTesting("orderSource", "流程_预受理工单下发_启动入口");
    }

}
